<?php global $lang; ?>

<?php
if (isset($_POST["email"])) :
    $ToEmail = 'blaoffice@fazi.rs'; 
    $EmailSubject = 'Site contact form'; 
    $mailheader = "From: ".$_POST["email"]."\r\n"; 
    $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; 
    $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $MESSAGE_BODY = "Name: ".$_POST["name"].""; 
    $MESSAGE_BODY .= "Email: ".$_POST["email"].""; 
    $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"]).""; 
    mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); 
	echo "Thanks, your message was sent successfully.";
else :
?>
<div class="contact">
    <div class="form">
    <form id="contact-form" method="post" action="">
        <table>
            <tr>
                <td><p style="height:0px;"><?php echo $lang->contact["contactus"]; ?></p><br /></td><td></td>
            </tr>
            <tr>
                <td><?php echo $lang->contact["name"]; ?>:</td><td><input type="text" id="name" name="name" /></td>
            </tr>
            <tr>
                <td><?php echo $lang->contact["email"]; ?>:</td><td><input type="text" id="email" name="email" /></td>
            </tr>
            <tr>
                <td><?php echo $lang->contact["website"]; ?>:</td><td><input type="text" id="website" name="website" /></td>
            </tr>
            <tr>
                <td><?php echo $lang->contact["comment"]; ?>:</td><td><textarea id="comment" name="comment"></textarea></td>
            </tr>
            <tr>
                <td></td><td><input id="submit" type="submit" value="<?php echo $lang->contact["submit"]; ?>" /></td>
            </tr>
        </table>
    </form>
    </div>
</div>
<div class="contact">
<div class="info">
    <div class="infologo"><img src="img/logo.png" /></div>
        <table>
            <tr>
                <td class="fieldname"><?php echo strtoupper($lang->contact["address"]); ?>:</td>
                <td>Novoprojektovana bb, Crveni Krst</td>
            </tr>
            <tr>
                <td class="fieldname"><?php echo strtoupper($lang->contact["zip"]); ?>:</td>
                <td>18000</td>
            </tr>
            <tr>
                <td class="fieldname"><?php echo strtoupper($lang->contact["city"]); ?>:</td>
                <td>Niš</td>
            </tr>
            <tr>
                <td class="fieldname"><?php echo strtoupper($lang->contact["country"]); ?>:</td>
                <td><?php echo $lang->contact["countryName"]; ?></td>
            </tr>
            <tr>
                <td class="fieldname"><?php echo strtoupper($lang->contact["phone"]); ?>:</td>
                <td>381 18 455 8880<br />381 18 455 8881</td>
            </tr>
            <tr>
                <td class="fieldname"><?php echo strtoupper($lang->contact["fax"]); ?>:</td>
                <td>381 18 455 8882</td>
            </tr>
            <tr>
                <td class="fieldname"><?php echo strtoupper($lang->contact["email"]); ?>:</td>
                <td>office@fazi.rs</td>
            </tr>
            <tr>
                <td class="fieldname"><?php echo strtoupper($lang->contact["web"]); ?>:</td>
                <td style="color:white;">www.fazi.rs</td>
            </tr>
        </table>
    </div>
</div>

<div class="clear"></div>
        
<?php endif; ?>